<?php

namespace App\Models;

use App\Traits\HasDateTimeFormatter;
use App\Traits\HasLoan;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class LoanMortgageCar extends Model
{
    use HasFactory, HasDateTimeFormatter, HasLoan;

    protected $table = "loan_mortgage_car";

    const TEMPLATE_HEADER = [
        "apply_at" => "申请时间",
        "name" => "称呼",
        "mobile" => "用户联系电话",
        "amount" => "贷款额度",
        "need_home_service" => "是否需要上门",
        "addr" => "详细地址",
        "info" => "车辆信息",
        "car_age" => "购车年限",
        "buy_price" => "购买裸车价",
        "car_model" => "汽车型号",
        "car_no" => "车牌号",
    ];

    protected $fillable = [
        "info",
        "car_age",
        "buy_price",
        "car_model",
        "car_no",
    ];
}
